
package Nisha;

public class Student {

	private int rollNo;
	private String name;
	public Student(int rollNo, String name)
	{
		this.name=name;
		this.rollNo = rollNo;
	}
	public int getRollNo() {
		return rollNo;
	}



	public void setRollNo(int rollNo) {
		this.rollNo = rollNo;
	}



	public String getName() {
		return name;
	}



	public void setName(String name) {
		this.name = name;
	}


	public static void main(String args)
	{
		
	}
	public static void main(String[] args) {
		Student nisha = new Student(01,"Nisha");
		Student payal = new Student(02,"Payal");

		System.out.println("Student 1 : "+nisha.getName());
		System.out.println("Student 2 : "+payal.getName());
	}

}
